package com.tiger.cloud.dao.crm;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.tiger.cloud.common.mybatis.MybatisTigerDao;
import com.tiger.cloud.model.crm.RecommandList;
import com.tiger.cloud.model.crm.User;
import com.tiger.cloud.model.ext.RecommandListMatch;

/**
 * 好友推荐、申请Dao
 */
public interface RecommandListDao extends MybatisTigerDao<RecommandList>{

	
	/**
	 * 获取某个时间段内数据
	 */
	List<RecommandListMatch> getRecommandListMatch(Date createTime);

	List<RecommandList> findAreaRecommandList(Map<String, Object> params);
	
	RecommandList getRecommand(RecommandList recommandList);

	int update2( RecommandList entity);
	
	Integer updateByUserId(RecommandList recommandList);
	
	
	Integer removeByUserId(RecommandList recommandList);
	
	
	Integer fixedUpdateByUserId(RecommandList recommandList);
	
	
	Integer updateRecommandList(RecommandList findRecommandList);
	
	
	long findAreaRecommandCount(Map<String, Object> params);
	
	
	long findNotAccept(RecommandList recommandList);

	List<User> notAcceptCount();

	List<User> notAddCount();

}